package com.song.service.impl;


import com.song.bean.Student;
import com.song.dao.impl.StudentDaoImpl;
import com.song.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {
    private StudentDaoImpl studentDao = new StudentDaoImpl();


    @Override
    public List<Student> getStudent(String stuname, String stuno, int sex,int pageindex,int pagesize) {
        return studentDao.getStudent(stuname, stuno, sex,pageindex,pagesize);
    }

    @Override
    public Integer getTotalStudent(String stuname, String stuno, int sex) {
        return studentDao.getTotalStudent(stuname, stuno, sex);
    }

    @Override
    public Integer insertStudent(Student student) {
        return studentDao.insertStudent(student);
    }

    @Override
    public Student findById(Integer stuid) {
        return studentDao.findById(stuid);
    }

    @Override
    public Integer updatetudent(Student student) {
        return studentDao.updatetudent(student);
    }

    @Override
    public Integer deleteStudent(Integer stuid) {
        return studentDao.deleteStudent(stuid);
    }

    @Override
    public Boolean stunoIsExist(String stuno) {
        return  studentDao.stunoIsExist(stuno);
    }
}
